<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>会员登录 - 人才系统</title>
<base href="${base}" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="../styles/user.css" rel="stylesheet" type="text/css" />
</head>
<script src="js/jquery-3.4.1.js"></script>
<script>
    console.log("${msg}")
	if("${msg}"!=""){
		alert("${msg}");
	}

	$(function () {
		$("input[type='submit']").click(function () {
			var text = $(this).val();
			console.log(text)
			if (text =="企业登录") {
				$("#loginForm").prop("action", "company/login").submit();

			} else if (text=="个人登录"){
				$("#loginForm").prop("action", "(自己填写)").submit();
			}

		})
	})
</script>
<body>
	<jsp:include page="header.jsp"></jsp:include>

	<div class="login_bg">
		<div class="login_box">
			<div class="login_boxin">

					<div class="tit">会员登录</div>
					<div class="login_err"></div>
				<form id="loginForm" action="" method="post" name="form1">
					<table width="100%" border="0" align="center" cellpadding="5"
						cellspacing="0">

						<tr>

							<td width="55" align="right" >帐号：</td>
							<td><input name="account" type="text" class="login_input"
								id="account" maxlength="30" value="用户名/邮箱/手机号"
								style="color: #999999" /></td>
						</tr>
						<tr>
							<td align="right">密码：</td>
							<td><input name="psw" type="password"
								class="login_input" id="psw" maxlength="20" /></td>
						</tr>
						<tr>
							<td align="right">&nbsp;</td>
							<td><div style="position: relative;">
									<label><input type="checkbox" name="expire" id="expire"
										value="7" /> 一周内自动登录</label>
								</div></td>
						</tr>
					</table>
				</form>
					<table width="100%" border="0" align="center" cellpadding="5"
						cellspacing="0">
						<tr>
							<td align="right" width="50">&nbsp;</td>
							<td height="40" valign="top">
								<div style="position: relative;">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>

											<td width="100"><input type="submit" name="submitlogin"
												id="loginCompany" class="but80" value="企业登录" /></td>


											<td class="link_bk"><a href="getpass.jsp">忘记密码？</a></td>
										</tr>
									</table>
				</form>
								</div>
							</td>
						</tr>
						<tr>
							<td align="right" style="border-top: 1px #E8E8E8 solid">&nbsp;</td>
							<td height="20" class="link_lan"
								style="border-top: 1px #E8E8E8 solid">还没有账号？<a
								href="register.jsp">免费注册</a></td>
						</tr>
					</table>

			</div>
		</div>
		<div class="clear"></div>
	</div>
	<jsp:include page="footer.jsp"></jsp:include>
</body>
</html>
